<%@ Page Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="CrearIncidencia.aspx.cs" Inherits="HelpDesk.CrearIncidencia" Title="Crear Incidencia" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="post">
        <h1 class="title">
            Ingresar Incidencia
        </h1>
        <p class="meta">
        </p>
    </div>
    <div id="Datos">
        <table id="data" border="0" align="center">
            <tr>
                <td>
                    Usuario con la Incidencia: 
                </td>
                <td>
                    <asp:DropDownList ID="ddl_usuario" runat="server" AutoPostBack="True">
                    </asp:DropDownList>
                    <asp:TextBox ID="txtUsuario" runat="server" Width="198px" Enabled="False" 
                        Visible="False">admin</asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtUsuario" ErrorMessage="*Campo Requerido"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Infraestructura: 
                </td>
                <td>
                    
                    <asp:DropDownList ID="ddlInfraestructura" runat="server" Height="25px" 
                        Width="200px" DataSourceID="SqlDataSource1" DataTextField="DESCRIPCION" 
                        DataValueField="ID_INFRAESTRUCTURA" AutoPostBack="True" 
                        onselectedindexchanged="Fill_Problema">
                        <asp:ListItem Text="" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                    
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConexionDataAdapter %>" 
                        ProviderName="<%$ ConnectionStrings:ConexionDataAdapter.ProviderName %>" 
                        SelectCommand="SELECT * FROM INFRAESTRUCTURA"></asp:SqlDataSource>
                    
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="ddlInfraestructura" ErrorMessage="*Campo Requerido"></asp:RequiredFieldValidator>
                    
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblProblema" runat="server" Text="Problema:"></asp:Label> 
                </td>
                <td>
                    <asp:DropDownList ID="ddlProblema" runat="server" Height="25px" Width="200px" 
                        onselectedindexchanged="Fill_Problema" AutoPostBack="True">
                        <asp:ListItem Text="" Selected="True"></asp:ListItem>
                    </asp:DropDownList> 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="ddlProblema" ErrorMessage="*Campo Requerido"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Problema Nuevo:                     </td>
                <td>
                    <asp:CheckBox ID="ckbNuevo" runat="server" 
                        oncheckedchanged="ckbNuevo_CheckedChanged" AutoPostBack="True" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Descripcion: " Visible="False"></asp:Label> 
                </td>
                <td>
                    <asp:TextBox ID="txtNuevo" runat="server" Width="200px" Visible="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Area de trabajo: 
                </td>
                <td>
                    <asp:DropDownList ID="ddlArea" runat="server" Height="25px" Width="200px" 
                        DataSourceID="OracleAreaSource" DataTextField="DESCRIPCION" 
                        DataValueField="ID_AREA" AutoPostBack="True">
                        <asp:ListItem Text="" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="OracleAreaSource" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConexionDataAdapter %>" 
                        ProviderName="<%$ ConnectionStrings:ConexionDataAdapter.ProviderName %>" 
                        SelectCommand="SELECT * FROM AREA_TRABAJO"></asp:SqlDataSource>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="ddlArea" ErrorMessage="*Campo Requerido"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Descripcion:                </td>
                <td>
                    <asp:TextBox ID="txtDescripcion" runat="server" Height="79px" TextMode="MultiLine" 
                        Width="198px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="txtDescripcion" ErrorMessage="*Campo Requerido"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Urgencia:    
                </td>
                <td>
                    <asp:DropDownList ID="ddl_urgencia" runat="server" AutoPostBack="True">
                    </asp:DropDownList>
                    <asp:Label ID="Label2" runat="server" Text=" HORAS"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    Impacto:    
                </td>
                <td>
                    <asp:DropDownList ID="impacto" runat="server" AutoPostBack="True">
                        <asp:ListItem>ALTO</asp:ListItem>
                        <asp:ListItem>MEDIO</asp:ListItem>
                        <asp:ListItem>BAJO</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                
                            </td>
                            <td>
                                <asp:Button ID="Button1" runat="server" Text="Crear" onclick="Button1_Click" />
                            </td>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
                            <td>
                                <asp:Button ID="Button2" runat="server" Text="Borrar" onclick="Button2_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    
    
    
</asp:Content>
